<template>
    <Chart :data="data"></Chart>
</template>

<script>

import Chart from '@/utils/Chart';
import * as d3 from 'd3';

export default {
    data() {
        return {
            data: []
        };
  },
  components: {
    Chart
  },
  created() {
    d3.csv(
      'https://raw.githubusercontent.com/bumbeishvili/sample-data/main/org.csv'
    ).then(d => {
      console.log('fetched data');
      console.log(d);
      this.data = d;
    });
  }
}


</script>
